package com.srwl.mytx.contrack;

import com.srwl.mytx.domain.User;
import com.srwl.mytx.BasePresenter;
import com.srwl.mytx.BaseView;

/**
 * Created by dahai2070 on 2018/2/22 0022.
 */

public interface RegisterContrack {
    interface View extends BaseView<Presenter> {
        void showRegisterSuccess();

        void showRegisterFail();

        void showSendMobileCodeSuccess();

        void setSendMobileCodeButtonText(String count);

        void showSendMobileCodeFail();

        void showToast(String message);

        void showRetrievePassWord();

        void showProgressDialog(String message);

        void disMissProgressDialog();

        void showValiueEmputy(int viewId);

        void setSendMobileCodeButtonStatus(boolean bool);

        void setRegisterButtonStatus(boolean bool);
    }

    interface Presenter extends BasePresenter {

        /**
         * 注册
         */
        void register(User user, String mobileCode);

        /**
         * 选择头像
         */
        void pickAvatar();

        /**
         * 上传头像
         */
        void uploadAvatar();

        /**
         * 发送短信
         */
        void sendMobileCode(String phoneNumber);
    }
}
